<?php
/*
 * Created on 14.04.2007
 * @filesource: uninstall.extensionicons.php
 * @author: Nikolai Plath
 */
function com_uninstall()
{
	global $database, $mosConfig_absolute_path;

	// uninstall module
	$database->setQuery( "DELETE FROM `#__modules` WHERE `module`= 'mod_extensionicons';");
	$database->query();

    @unlink( "$mosConfig_absolute_path/administrator/modules/mod_extensionicons.php" );
    @unlink( "$mosConfig_absolute_path/administrator/modules/mod_extensionicons.xml" );

	echo 'Modul gel&ouml;scht <img src="images/tick.png" /><br />';
/*
 * should the custom_dir really be removed ???
 * only if empty...
 */
	@rmdir( "$mosConfig_absolute_path/images/ExtensionIcons_custom" );

	echo "Schade, dass Sie unsere Komponente nicht mehr benutzen wollen...";
}
?>
